package org.ffrl.design.command;

public class CeilingFan {
    public final static int HIGH   = 3;
    
    public final static int MEDIUM = 2;
    
    public static final int LOW    = 1;
    
    public final static int OFF    = 0;
    
    String                  location;
    
    int                     speed;
    
    public CeilingFan(String location) {
        this.location = location;
        speed = OFF;
    }
    
    public int getSpeed() {
        return speed;
    }
    
    public void high(){
        this.speed = HIGH;
    }
    
    public void medium(){
        this.speed = MEDIUM;
    }
    public void low(){
        this.speed = LOW;
    }
    public void off(){
        this.speed = OFF;
    }
}
